package com.sk.cartoonindia;

import com.sk.cartoonindia.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

/**
 * @author saurabh
 * Main Activity
 */
public class StartupActivity extends Activity {
	/** Called when the activity is first created. */
	ImageView imView;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		imView = (ImageView) findViewById(R.id.imageView1);
		Button btn1 = (Button) findViewById(R.id.btnClick);
		btn1.setOnClickListener(btnListener);

		Button btnCatClick = (Button) findViewById(R.id.btnCatClick);
		btnCatClick.setOnClickListener(btnCatClickListener);

	}

	private OnClickListener btnListener = new OnClickListener() {
		public void onClick(View v) {
			Intent in = new Intent(StartupActivity.this,
					ShowToonsActivity.class);
			startActivity(in);
		}
	};

	private OnClickListener btnCatClickListener = new OnClickListener() {
		public void onClick(View v) {
			Intent in = new Intent(StartupActivity.this,
					CategoryListActivity.class);
			startActivity(in);
		}
	};

}